using FairyGUI;
using UnityEngine.SceneManagement;

public class UI_Game : Window
{
    public GButton m_btnBack;

    protected override void OnInit()
    {
        base.OnInit();
        this.contentPane = UIManager.Instance.LoadComponent("Game", "UIGame");
        m_btnBack = (GButton)this.contentPane.GetChild("btnBack");
        //返回
        m_btnBack.onClick.Add(() =>
        {
            SceneManager.LoadScene("LoginScene");
        });
    }
}
